package com.xinggq.user.api.feign;

import com.xinggq.common.CommonResult;
import com.xinggq.user.api.dto.VerifyPasswordRequest;
import com.xinggq.user.api.dto.VerifyPasswordResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户认证API接口
 *
 * @author xinggq
 * @since 2025-10-20
 */
@FeignClient(name = "box-user-center", path = "/api/user/auth")
@Tag(name = "用户认证API", description = "提供用户认证相关接口")
public interface UserAuthApi {

  /**
   * 验证用户密码
   *
   * @param request 验证请求
   * @return 验证结果
   */
  @PostMapping("/verify-password")
  @Operation(summary = "验证用户密码", description = "验证用户名和密码是否匹配")
  CommonResult<VerifyPasswordResponse> verifyPassword(@RequestBody VerifyPasswordRequest request);

}